package com.dshore.messagecenter.dao.technology;

import java.util.Date;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class TimerTaskDao {
	@Autowired
	JdbcTemplate jdbcTemplate;
	
	public Integer addData(Map<String,Object> m) {
		String sql="insert into A_TIMER_TASK(ID,MESSAGE,CREATED_TIME)values(?,?,?)";
		return jdbcTemplate.update(sql,m.get("id"),m.get("data"),new Date());
	}
}
